Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

443
Views
TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array

TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received undefined

 var http=require('http')
 var fs=require('fs')
 http.createServer(function (req,res) {

    fs.readFile("sampleServer.html",function(err,data){
       res.writeHead(200,{'Content-Type':'text/html'})
       res.write(data)
       res.end()

       })
   }).listen(7000)
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I found my mistake. I run this like: node ./folder/sample.js.

After this, I enter to the folder using cd

folder> node ./sample.js

this time my errors are fixed.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!